/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.svh.Utils;

import com.clyme.filtro.Conditions;

/**
 *
 * @author Luis Alonso Ballena Garcia
 */
public class ShortCondicion implements Conditions{

    @Override
    public boolean esValido(Object... parameter) {
        boolean resultado = true;
        for(Object param : parameter){
           if(param instanceof Short){
               Short dato  = (Short) param;
               if(validarInteger(dato)){
                   resultado = false;
                   break;
               }
           }
       }
       return resultado;
    }
    
    private boolean validarInteger(Short dato){
        return dato.intValue() == 0;
    }
    
}
